﻿using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Linq;
using System.Text;
using System.Windows.Forms;

namespace ModelViewer
{
    public partial class XmodlOptionsDlg : Form
    {
        /// <summary>
        /// The options class. This is a copy that the client
        /// program can get when we take the options.
        /// </summary>
        private XmodlOptions options = null;

        /// <summary>
        /// The options class
        /// </summary>
        public XmodlOptions Options { get { return options; } set { options = value.Clone(); } }

        public XmodlOptionsDlg()
        {
            InitializeComponent();
        }

        private void buttonOk_Click(object sender, EventArgs e)
        {
            Options.CompactFormat = checkCompact.Checked;
            this.DialogResult = System.Windows.Forms.DialogResult.OK;
            this.Close();
        }

        private void ExportFormatDlg_Load(object sender, EventArgs e)
        {
            checkCompact.Checked = Options.CompactFormat;
        }
    }
}
